﻿using System;
using Slf;


namespace Filter_by_LogLevel
{
  class Program
  {
    static void Main(string[] args)
    {
      Console.ForegroundColor = ConsoleColor.Green;
      string msg = "log4net was configured in app.config in order to suppress all logging" +
                   " instructions that are not warnings, errors, or fatal errors.\n\n";
      Console.Out.WriteLine(msg);
      Console.ResetColor();

      ILogger logger = LoggerService.GetLogger();
      logger.Debug("A debug message.");
      logger.Info("An information.");
      logger.Warn("A warning.");
      logger.Error("An error.");
      logger.Fatal("A fatal error.");

      Console.ReadLine();
    }
  }
}
